import { createStore } from 'vuex'
import _ from 'lodash'

export default createStore({
  state: {
    station: null,
    personal: null,
  },
  getters: {
  },
  mutations: {
    setStation(state, value) {
      state.station = value;
    },
    setPersonal(state, personal) {
      localStorage.userId = personal.id;
      state.personal = personal;
    },
  },
  actions: {
  },
  modules: {
  }
})
